/* 整体居中 */
.float-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 垂直居中 */
.float-vertical-center {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

/* 水平居中 */
.float-horizontal-center {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
}
